<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.11.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>cppMISC: wheels::dm::vistor&lt; DATA_ITFC, RET &gt; 模板类 参考</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../clipboard.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../cookie.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript" src="../../darkmode_toggle.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">cppMISC<span id="projectnumber">&#160;v1.1</span>
   </div>
   <div id="projectbrief">cppMisc 文档系统</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.11.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() { codefold.init(1); });
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',true,false,'search.php','搜索',false);
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){ initResizable(false); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../df/d8d/namespacewheels.html">wheels</a></li><li class="navelem"><a class="el" href="../../d8/d2d/namespacewheels_1_1dm.html">dm</a></li><li class="navelem"><a class="el" href="../../d4/d63/classwheels_1_1dm_1_1vistor.html">vistor</a></li>  </ul>
</div>
</div><!-- top -->
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="../../d7/d8a/classwheels_1_1dm_1_1vistor-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">wheels::dm::vistor&lt; DATA_ITFC, RET &gt; 模板类 参考</div></div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../da/d1e/vistor_8hpp_source.html">vistor.hpp</a>&gt;</code></p>
<div class="dynheader">
wheels::dm::vistor&lt; DATA_ITFC, RET &gt; 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="../../dc/d09/classwheels_1_1dm_1_1vistor__coll__graph.png" border="0" usemap="#awheels_1_1dm_1_1vistor_3_01_d_a_t_a___i_t_f_c_00_01_r_e_t_01_4_coll__map" alt="Collaboration graph"/></div>
<map name="awheels_1_1dm_1_1vistor_3_01_d_a_t_a___i_t_f_c_00_01_r_e_t_01_4_coll__map" id="awheels_1_1dm_1_1vistor_3_01_d_a_t_a___i_t_f_c_00_01_r_e_t_01_4_coll__map">
<area shape="rect" title=" " alt="" coords="5,5,173,400"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a2b28fd273da934cdb34a1e3cc89e448f" id="r_a2b28fd273da934cdb34a1e3cc89e448f"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a2b28fd273da934cdb34a1e3cc89e448f">dataItem_t</a> = typename std::remove_pointer&lt; typename std::decay&lt; DATA_ITFC &gt;::type &gt;::type</td></tr>
<tr class="separator:a2b28fd273da934cdb34a1e3cc89e448f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cc56c8d0a2c14ecb537513e922b75fc" id="r_a5cc56c8d0a2c14ecb537513e922b75fc"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5cc56c8d0a2c14ecb537513e922b75fc">func_t</a> = std::function&lt; RET ( <a class="el" href="#a2b28fd273da934cdb34a1e3cc89e448f">dataItem_t</a>&amp; ) &gt;</td></tr>
<tr class="separator:a5cc56c8d0a2c14ecb537513e922b75fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aedaaaed0dbab094b9f1becaa6767a580" id="r_aedaaaed0dbab094b9f1becaa6767a580"><td class="memItemLeft" align="right" valign="top">using&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aedaaaed0dbab094b9f1becaa6767a580">funcTan_t</a> = typename std::unordered_map&lt; std::string , <a class="el" href="#a5cc56c8d0a2c14ecb537513e922b75fc">func_t</a> &gt;</td></tr>
<tr class="separator:aedaaaed0dbab094b9f1becaa6767a580"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:add33b0b3ea74654964b37a244f03e99d" id="r_add33b0b3ea74654964b37a244f03e99d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#add33b0b3ea74654964b37a244f03e99d">vistor</a> ()</td></tr>
<tr class="separator:add33b0b3ea74654964b37a244f03e99d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6343fb688d2f612511f394b95e8d9da" id="r_ac6343fb688d2f612511f394b95e8d9da"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ac6343fb688d2f612511f394b95e8d9da">~vistor</a> ()</td></tr>
<tr class="separator:ac6343fb688d2f612511f394b95e8d9da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93bdea877cf6024793903cf2cb9b487f" id="r_a93bdea877cf6024793903cf2cb9b487f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a93bdea877cf6024793903cf2cb9b487f">addMethod</a> (const std::string &amp;name, <a class="el" href="#a5cc56c8d0a2c14ecb537513e922b75fc">func_t</a> func)</td></tr>
<tr class="memdesc:a93bdea877cf6024793903cf2cb9b487f"><td class="mdescLeft">&#160;</td><td class="mdescRight">添加处理方法  <br /></td></tr>
<tr class="separator:a93bdea877cf6024793903cf2cb9b487f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf514db53ace887610fac22bc367d749" id="r_acf514db53ace887610fac22bc367d749"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#acf514db53ace887610fac22bc367d749">eraseMethod</a> (const std::string &amp;name)</td></tr>
<tr class="memdesc:acf514db53ace887610fac22bc367d749"><td class="mdescLeft">&#160;</td><td class="mdescRight">移除方法  <br /></td></tr>
<tr class="separator:acf514db53ace887610fac22bc367d749"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56913ed4267c44c2514e3ebdb49ff329" id="r_a56913ed4267c44c2514e3ebdb49ff329"><td class="memItemLeft" align="right" valign="top"><a class="el" href="#a5cc56c8d0a2c14ecb537513e922b75fc">func_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a56913ed4267c44c2514e3ebdb49ff329">operator[]</a> (const std::string &amp;name)</td></tr>
<tr class="memdesc:a56913ed4267c44c2514e3ebdb49ff329"><td class="mdescLeft">&#160;</td><td class="mdescRight">这是一个方便操作接口，可以用过 vistor["abc"]( data )调用处理数据  <br /></td></tr>
<tr class="separator:a56913ed4267c44c2514e3ebdb49ff329"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5812de2908657d7b055f6988f4934ece" id="r_a5812de2908657d7b055f6988f4934ece"><td class="memItemLeft" align="right" valign="top">RET&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a5812de2908657d7b055f6988f4934ece">call</a> (const std::string &amp;name, <a class="el" href="#a2b28fd273da934cdb34a1e3cc89e448f">dataItem_t</a> &amp;data)</td></tr>
<tr class="memdesc:a5812de2908657d7b055f6988f4934ece"><td class="mdescLeft">&#160;</td><td class="mdescRight">调用方法处理数据  <br /></td></tr>
<tr class="separator:a5812de2908657d7b055f6988f4934ece"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a38332afd91fdab54cd358a0e84fdbd" id="r_a2a38332afd91fdab54cd358a0e84fdbd"><td class="memTemplParams" colspan="2">template&lt;typename InputIterator &gt; </td></tr>
<tr class="memitem:a2a38332afd91fdab54cd358a0e84fdbd"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="#a2a38332afd91fdab54cd358a0e84fdbd">callEach</a> (const std::string &amp;name, InputIterator begin, InputIterator end)</td></tr>
<tr class="memdesc:a2a38332afd91fdab54cd358a0e84fdbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">调用方法处理批量数据  <br /></td></tr>
<tr class="separator:a2a38332afd91fdab54cd358a0e84fdbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4bb50b423f5ca883924bf29c6668d53c" id="r_a4bb50b423f5ca883924bf29c6668d53c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a4bb50b423f5ca883924bf29c6668d53c">has</a> (const std::string &amp;name)</td></tr>
<tr class="memdesc:a4bb50b423f5ca883924bf29c6668d53c"><td class="mdescLeft">&#160;</td><td class="mdescRight">检查是否存在指定的方法  <br /></td></tr>
<tr class="separator:a4bb50b423f5ca883924bf29c6668d53c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pro-attribs" name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a18f6d40971783dd20d9943dedd7f9087" id="r_a18f6d40971783dd20d9943dedd7f9087"><td class="memItemLeft" align="right" valign="top"><a class="el" href="#aedaaaed0dbab094b9f1becaa6767a580">funcTan_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a18f6d40971783dd20d9943dedd7f9087">m_funcs__</a></td></tr>
<tr class="separator:a18f6d40971783dd20d9943dedd7f9087"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;typename DATA_ITFC, typename RET&gt;<br />
class wheels::dm::vistor&lt; DATA_ITFC, RET &gt;</div>
<p class="definition">在文件 <a class="el" href="../../da/d1e/vistor_8hpp_source.html">vistor.hpp</a> 第 <a class="el" href="../../da/d1e/vistor_8hpp_source.html#l00012">12</a> 行定义.</p>
</div><h2 class="groupheader">成员类型定义说明</h2>
<a id="a2b28fd273da934cdb34a1e3cc89e448f" name="a2b28fd273da934cdb34a1e3cc89e448f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b28fd273da934cdb34a1e3cc89e448f">&#9670;&#160;</a></span>dataItem_t</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DATA_ITFC , typename RET &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="../../d4/d63/classwheels_1_1dm_1_1vistor.html">wheels::dm::vistor</a>&lt; DATA_ITFC, RET &gt;::dataItem_t = typename std::remove_pointer&lt; typename std::decay&lt; DATA_ITFC &gt;::type &gt;::type</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../da/d1e/vistor_8hpp_source.html">vistor.hpp</a> 第 <a class="el" href="../../da/d1e/vistor_8hpp_source.html#l00015">15</a> 行定义.</p>

</div>
</div>
<a id="a5cc56c8d0a2c14ecb537513e922b75fc" name="a5cc56c8d0a2c14ecb537513e922b75fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5cc56c8d0a2c14ecb537513e922b75fc">&#9670;&#160;</a></span>func_t</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DATA_ITFC , typename RET &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="../../d4/d63/classwheels_1_1dm_1_1vistor.html">wheels::dm::vistor</a>&lt; DATA_ITFC, RET &gt;::func_t = std::function&lt; RET ( <a class="el" href="#a2b28fd273da934cdb34a1e3cc89e448f">dataItem_t</a>&amp; ) &gt;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../da/d1e/vistor_8hpp_source.html">vistor.hpp</a> 第 <a class="el" href="../../da/d1e/vistor_8hpp_source.html#l00016">16</a> 行定义.</p>

</div>
</div>
<a id="aedaaaed0dbab094b9f1becaa6767a580" name="aedaaaed0dbab094b9f1becaa6767a580"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aedaaaed0dbab094b9f1becaa6767a580">&#9670;&#160;</a></span>funcTan_t</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DATA_ITFC , typename RET &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">using <a class="el" href="../../d4/d63/classwheels_1_1dm_1_1vistor.html">wheels::dm::vistor</a>&lt; DATA_ITFC, RET &gt;::funcTan_t = typename std::unordered_map&lt; std::string , <a class="el" href="#a5cc56c8d0a2c14ecb537513e922b75fc">func_t</a> &gt;</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../da/d1e/vistor_8hpp_source.html">vistor.hpp</a> 第 <a class="el" href="../../da/d1e/vistor_8hpp_source.html#l00017">17</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">构造及析构函数说明</h2>
<a id="add33b0b3ea74654964b37a244f03e99d" name="add33b0b3ea74654964b37a244f03e99d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add33b0b3ea74654964b37a244f03e99d">&#9670;&#160;</a></span>vistor()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DATA_ITFC , typename RET &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../d4/d63/classwheels_1_1dm_1_1vistor.html">wheels::dm::vistor</a>&lt; DATA_ITFC, RET &gt;::vistor </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../da/d1e/vistor_8hpp_source.html">vistor.hpp</a> 第 <a class="el" href="../../da/d1e/vistor_8hpp_source.html#l00021">21</a> 行定义.</p>

</div>
</div>
<a id="ac6343fb688d2f612511f394b95e8d9da" name="ac6343fb688d2f612511f394b95e8d9da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac6343fb688d2f612511f394b95e8d9da">&#9670;&#160;</a></span>~vistor()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DATA_ITFC , typename RET &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="../../d4/d63/classwheels_1_1dm_1_1vistor.html">wheels::dm::vistor</a>&lt; DATA_ITFC, RET &gt;::~<a class="el" href="../../d4/d63/classwheels_1_1dm_1_1vistor.html">vistor</a> </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../da/d1e/vistor_8hpp_source.html">vistor.hpp</a> 第 <a class="el" href="../../da/d1e/vistor_8hpp_source.html#l00022">22</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a93bdea877cf6024793903cf2cb9b487f" name="a93bdea877cf6024793903cf2cb9b487f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a93bdea877cf6024793903cf2cb9b487f">&#9670;&#160;</a></span>addMethod()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DATA_ITFC , typename RET &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d4/d63/classwheels_1_1dm_1_1vistor.html">wheels::dm::vistor</a>&lt; DATA_ITFC, RET &gt;::addMethod </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>name</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="#a5cc56c8d0a2c14ecb537513e922b75fc">func_t</a></td>          <td class="paramname"><span class="paramname"><em>func</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>添加处理方法 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name[</td><td>I ], 方法名称 </td></tr>
    <tr><td class="paramname">func,方法函数对象</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果成功添加方法，返回true，否则返回false </dd></dl>

<p class="definition">在文件 <a class="el" href="../../da/d1e/vistor_8hpp_source.html">vistor.hpp</a> 第 <a class="el" href="../../da/d1e/vistor_8hpp_source.html#l00029">29</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/d63/classwheels_1_1dm_1_1vistor_a93bdea877cf6024793903cf2cb9b487f_icgraph.png" border="0" usemap="#ad4/d63/classwheels_1_1dm_1_1vistor_a93bdea877cf6024793903cf2cb9b487f_icgraph" alt=""/></div>
<map name="ad4/d63/classwheels_1_1dm_1_1vistor_a93bdea877cf6024793903cf2cb9b487f_icgraph" id="ad4/d63/classwheels_1_1dm_1_1vistor_a93bdea877cf6024793903cf2cb9b487f_icgraph">
<area shape="rect" title="添加处理方法" alt="" coords="103,5,231,48"/>
<area shape="rect" href="../../dc/df8/vistor_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4" title=" " alt="" coords="5,13,55,40"/>
<area shape="poly" title=" " alt="" coords="87,29,55,29,55,24,87,24"/>
</map>
</div>

</div>
</div>
<a id="a5812de2908657d7b055f6988f4934ece" name="a5812de2908657d7b055f6988f4934ece"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5812de2908657d7b055f6988f4934ece">&#9670;&#160;</a></span>call()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DATA_ITFC , typename RET &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">RET <a class="el" href="../../d4/d63/classwheels_1_1dm_1_1vistor.html">wheels::dm::vistor</a>&lt; DATA_ITFC, RET &gt;::call </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>name</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="#a2b28fd273da934cdb34a1e3cc89e448f">dataItem_t</a> &amp;</td>          <td class="paramname"><span class="paramname"><em>data</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>调用方法处理数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name[</td><td>I ], 方法名称 </td></tr>
    <tr><td class="paramname">要处理的数据</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../da/d1e/vistor_8hpp_source.html">vistor.hpp</a> 第 <a class="el" href="../../da/d1e/vistor_8hpp_source.html#l00062">62</a> 行定义.</p>

</div>
</div>
<a id="a2a38332afd91fdab54cd358a0e84fdbd" name="a2a38332afd91fdab54cd358a0e84fdbd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2a38332afd91fdab54cd358a0e84fdbd">&#9670;&#160;</a></span>callEach()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DATA_ITFC , typename RET &gt; </div>
<div class="memtemplate">
template&lt;typename InputIterator &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="../../d4/d63/classwheels_1_1dm_1_1vistor.html">wheels::dm::vistor</a>&lt; DATA_ITFC, RET &gt;::callEach </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>name</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">InputIterator</td>          <td class="paramname"><span class="paramname"><em>begin</em></span>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">InputIterator</td>          <td class="paramname"><span class="paramname"><em>end</em></span>&#160;)</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>调用方法处理批量数据 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">name[</td><td>I ], 方法名称 </td></tr>
    <tr><td class="paramname">要处理的数据</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="../../da/d1e/vistor_8hpp_source.html">vistor.hpp</a> 第 <a class="el" href="../../da/d1e/vistor_8hpp_source.html#l00075">75</a> 行定义.</p>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="../../d4/d63/classwheels_1_1dm_1_1vistor_a2a38332afd91fdab54cd358a0e84fdbd_icgraph.png" border="0" usemap="#ad4/d63/classwheels_1_1dm_1_1vistor_a2a38332afd91fdab54cd358a0e84fdbd_icgraph" alt=""/></div>
<map name="ad4/d63/classwheels_1_1dm_1_1vistor_a2a38332afd91fdab54cd358a0e84fdbd_icgraph" id="ad4/d63/classwheels_1_1dm_1_1vistor_a2a38332afd91fdab54cd358a0e84fdbd_icgraph">
<area shape="rect" title="调用方法处理批量数据" alt="" coords="103,5,231,48"/>
<area shape="rect" href="../../dc/df8/vistor_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4" title=" " alt="" coords="5,13,55,40"/>
<area shape="poly" title=" " alt="" coords="87,29,55,29,55,24,87,24"/>
</map>
</div>

</div>
</div>
<a id="acf514db53ace887610fac22bc367d749" name="acf514db53ace887610fac22bc367d749"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acf514db53ace887610fac22bc367d749">&#9670;&#160;</a></span>eraseMethod()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DATA_ITFC , typename RET &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d4/d63/classwheels_1_1dm_1_1vistor.html">wheels::dm::vistor</a>&lt; DATA_ITFC, RET &gt;::eraseMethod </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>name</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>移除方法 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">方法名称</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>如果没有找到方法，返回false,否则删除方法返回true </dd></dl>

<p class="definition">在文件 <a class="el" href="../../da/d1e/vistor_8hpp_source.html">vistor.hpp</a> 第 <a class="el" href="../../da/d1e/vistor_8hpp_source.html#l00038">38</a> 行定义.</p>

</div>
</div>
<a id="a4bb50b423f5ca883924bf29c6668d53c" name="a4bb50b423f5ca883924bf29c6668d53c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4bb50b423f5ca883924bf29c6668d53c">&#9670;&#160;</a></span>has()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DATA_ITFC , typename RET &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="../../d4/d63/classwheels_1_1dm_1_1vistor.html">wheels::dm::vistor</a>&lt; DATA_ITFC, RET &gt;::has </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>name</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>检查是否存在指定的方法 </p>

<p class="definition">在文件 <a class="el" href="../../da/d1e/vistor_8hpp_source.html">vistor.hpp</a> 第 <a class="el" href="../../da/d1e/vistor_8hpp_source.html#l00087">87</a> 行定义.</p>

</div>
</div>
<a id="a56913ed4267c44c2514e3ebdb49ff329" name="a56913ed4267c44c2514e3ebdb49ff329"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a56913ed4267c44c2514e3ebdb49ff329">&#9670;&#160;</a></span>operator[]()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DATA_ITFC , typename RET &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="#a5cc56c8d0a2c14ecb537513e922b75fc">func_t</a> <a class="el" href="../../d4/d63/classwheels_1_1dm_1_1vistor.html">wheels::dm::vistor</a>&lt; DATA_ITFC, RET &gt;::operator[] </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;</td>          <td class="paramname"><span class="paramname"><em>name</em></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>这是一个方便操作接口，可以用过 vistor["abc"]( data )调用处理数据 </p>

<p class="definition">在文件 <a class="el" href="../../da/d1e/vistor_8hpp_source.html">vistor.hpp</a> 第 <a class="el" href="../../da/d1e/vistor_8hpp_source.html#l00050">50</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a18f6d40971783dd20d9943dedd7f9087" name="a18f6d40971783dd20d9943dedd7f9087"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a18f6d40971783dd20d9943dedd7f9087">&#9670;&#160;</a></span>m_funcs__</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename DATA_ITFC , typename RET &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="#aedaaaed0dbab094b9f1becaa6767a580">funcTan_t</a> <a class="el" href="../../d4/d63/classwheels_1_1dm_1_1vistor.html">wheels::dm::vistor</a>&lt; DATA_ITFC, RET &gt;::m_funcs__</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="../../da/d1e/vistor_8hpp_source.html">vistor.hpp</a> 第 <a class="el" href="../../da/d1e/vistor_8hpp_source.html#l00019">19</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>include/designM/<a class="el" href="../../da/d1e/vistor_8hpp_source.html">vistor.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.11.0
</small></address>
</div><!-- doc-content -->
</body>
</html>
